package com.nsoft.utils;

public class Constant {
	public static final String EMPTY="";
	public static final String CHR_REPLACE="%s";
	public static final String PATH_SPLITTER="/";
	public static final String URL_PREFIX="file://";
	
	public static final String DIALOG_CONFIRM="confirm";
	public static final String DIALOG_ALERT="alert";
	public static final String DIALOG_ERROR="error";
	public static final String DIALOG_YES="yes";
	public static final String DIALOG_NO="no";
	public static final String DIALOG_OK="ok";
	
	public static final String DOWNLOADED_TRUE="true";
	public static final String DOWNLOADED_FALSE="false";
	
	public static final String UTIL_SDCARD_BASEFOLDER_NAME="pv_data";
	public static final String UTIL_SDCARD_BOOKFOLDER_NAME="books";
	public static final String UTIL_SDCARD_HISTORYFOLDER_NAME="history";
	public static final String UTIL_SDCARD_THUMBFOLDER_NAME="thumbs";
	public static final String UTIL_SDCARD_ICONFOLDER_NAME="icon";
	public static final String UTIL_SERVER_APPLICATION="dms";
	public static final String UTIL_HTML="html";
	
	public static final String UTIL_BOOKLIST_HISTORY_FILE="booklist_history.xml";
	
	public static class bmp {
		public static final int WIDTH=75;
		public static final int HEIGHT=100;
	}
	
	public static class pagesize{
		public static final int WIDTH=768;
		public static final int HEIGHT=1024;
	}
	
	public static class xml {
		public static final String XML_TAG_DMSINFO="dmsInfo";
		public static final String XML_TAG_CONTENTS="contents";
		public static final String XML_TAG_CONTENT="content";
		public static final String XML_TAG_CONTENTNAME="contentsName";
		public static final String XML_TAG_CONTENTID="contentsId";
		public static final String XML_TAG_DOWNLOADPATH="downloadPath";
		public static final String XML_TAG_FILENAME="filename";
		public static final String XML_TAG_IMGPATH="imgPath";
		public static final String XML_TAG_VERSION="version";
		public static final String XML_TAG_STATE="state";
		public static final String XML_TAG_REDOWNLOAD="reDownload";
	
		public static final String XML_BOOK_CONFIG_FILE="iPadPageInfo.xml";
		public static final String XML_CONFIG_TAG_PAGE="page";
		public static final String XML_CONFIG_TAG_PAGEID="pageid";
		public static final String XML_CONFIG_TAG_PAGEINDEX="pageindex";
		public static final String XML_CONFIG_TAG_PAGENAME="pagename";
	}
	
	public static class utils{
		public static final String UTIL_ZOOM_METATAG="<meta name=\"viewport\" content=\"width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;\" />";
		public static final String UTIL_ZOOM_METATAG1="<meta name=\"viewport\" content=\"width=device-width;target-densitydpi=device-dpi\" />";
	}
	
	public static class engine{
		
	}
	
	public static class booklist{
		public static final String BLF_SELECT_LISTENER_NOT_IMPLEMENTED=
							"the activity [%s] must implement "+
							"the BookSelectListener interface";
		public static final String BLF_CURRENT_POSITION="currentPosition";
		public static final String BLF_SERVER_UPDATE="update";
		public static final String BLF_SERVER_SYNC_CONFIRM="are you sure you want to synchronize with server?";
		public static final String BLF_SERVER_SYNCHRONIZE="synchronizing with server...";
		public static final String BLF_BOOKLIST_SYNCHRONIZE="synchronizing with bookstore...";
		
		public static final String BLF_LOAD_FROMLOCAL_FAILED="retrieving books from local failed. please resync from server";
		public static final String BLF_LOAD_FROMSERVER_FAILED="retrieving books from server failed. please check your network";
	
		public static final String BLF_CFM_DOWNLOAD="are you sure you want to download this book?";
		public static final String BLF_CFM_DELETE="are you sure you want to delete this book?";
		public static final String BLF_CFM_REDOWNLOAD="the book has been downloaded. do you want to re-download?";
		public static final String BLF_ERROR_DELETE_FOLDER_FAILED="cannot delete the old content of the book. please check the app permission or file system setting";
		public static final String BLF_ERROR_DOWNLOADING_FAILED="downloading the book failed. please check if the book is available or network problem";
		public static final String BLF_DOWNLOAD_DONE="download completed";
		public static final String BLF_FILE_DOWNLOADING="downloading...";
		public static final String ELF_DOWNLOAD_EXTRACTING="extracting content...";
		public static final String BLF_BOOK_LOADING="book loading...";
		
		public static final String BOOK_INDEX_TRANSFER="book_index";
		
		public static final String BLA_CFM_QUIT="are you sure you want to quit?";
	}
}
